<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=0">
    <title>canvas俄罗斯方块</title>
    <script src="tetris.js"></script>
</head>
<style>
    body {
        margin: 0;
        padding: 0;
    }
    #myCanvas {
        border: 1px solid black;
        margin: 10px auto;
        display: block;
    }
</style>
<body>
<div class="main">
    <canvas id="myCanvas" width="200" height="400"></canvas>
</div>
</body>
</html>